// import request from '@/utils/request'
// import request from '@/app/appcommon/utils/request-spring'
import request from '@/app/appcommon/utils/request-spring-token'

// 查询product_func列表
export function listProduct(query) {
  return request({
    url: '/product/list',
    method: 'get',
    params: query
  })
}

// 查询product_func详细
export function getProduct(productId) {
  return request({
    url: '/product/' + productId,
    method: 'get'
  })
}

// 新增product_func
export function addProduct(data) {
  return request({
    url: '/product',
    method: 'post',
    data: data
  })
}

// 修改product_func
export function updateProduct(data) {
  return request({
    url: '/product',
    method: 'put',
    data: data
  })
}

// 删除product_func
export function delProduct(productId) {
  return request({
    url: '/product/' + productId,
    method: 'delete'
  })
}
